package com.wangsd.web.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

/**
 * 区域
 */
@Data
@Entity
@Table(name = "area")
@ApiModel(value = "区域", description = "区域")
public class Area implements Serializable {

    @ApiModelProperty(value = "id")
    @Id//JPA指定id
    private String id;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "父级id")
    private String parentId;
}
